package cdu.sl.mapper;

import cdu.sl.annotation.AutoFill;
import cdu.sl.common.enums.OperationType;
import cdu.sl.domain.po.Folder;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FolderMapper extends BaseMapper<Folder> {


    @AutoFill(OperationType.INSERT)
    int insert(Folder entity);


    @AutoFill(OperationType.UPDATE)
    int update(@Param("et") Folder entity, @Param("ew") Wrapper<Folder> updateWrapper);
}
